package com.lm.activemq.consumer;

import com.lm.activemq.config.ActiveMQConfig;
import org.springframework.jms.annotation.JmsListener;
import org.springframework.stereotype.Component;

@Component
public class QueueConsumer {

    @JmsListener(destination = ActiveMQConfig.QUEUE_NAME)
    public void receiveQueue(String text) {
        System.out.println("收到 Queue 消息：" + text);
    }
}
